package net.web.action;

import java.util.Map;

import net.web.vo.Bean;

import org.apache.struts2.interceptor.RequestAware;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class BaseAction extends ActionSupport implements RequestAware,SessionAware,ModelDriven<Bean> {

	protected Map<String, Object> request;
	protected Map<String, Object> session;
	
	@Override
	public void setRequest(Map<String, Object> request) {
		this.request = request;
	}
	
	@Override
	public void setSession(Map<String, Object> session) {
		this.session = session;
	}

	protected Bean bean = new Bean();
	
	@Override
	public Bean getModel() {
		return bean;
	}

}
